#ifndef STATE_MACHINE_H
#define STATE_MACHINE_H

	enum states { S_INIT, S_IDLE, S_FLICKERING, S_DANCE };
	typedef enum states STATE;
	
	void sm_set_state( STATE s );
	void sm_set_state( STATE newState );
	int sm_is_state( STATE eqState );
	
	int sm_is_locked();
	void sm_lock();
	void sm_unlock();

#endif
